home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15708 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source, ISO-8859 text default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 6e | 66 6f 2e 62 74 61 2e 6e |Path: in|fo.bta.n|
|00000010| 65 74 2e 63 6e 21 75 73 | 65 6e 65 74 0a 46 72 6f |et.cn!us|enet.Fro|
|00000020| 6d 3a 20 58 75 20 59 69 | 66 65 6e 67 20 3c 73 78 |m: Xu Yi|feng <sx|
|00000030| 64 63 62 31 40 70 75 62 | 2e 7a 6a 70 74 61 2e 6e |dcb1@pub|.zjpta.n|
|00000040| 65 74 2e 63 6e 3e 0a 4e | 65 77 73 67 72 6f 75 70 |et.cn>.N|ewsgroup|
|00000050| 73 3a 20 63 6f 6d 70 2e | 6c 61 6e 67 2e 63 0a 53 |s: comp.|lang.c.S|
|00000060| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 44 4c 4c 20 |ubject: |Re: DLL |
|00000070| 69 6e 20 57 61 74 63 6f | 6d 20 43 2b 2b 20 31 30 |in Watco|m C++ 10|
|00000080| 2e 35 0a 44 61 74 65 3a | 20 53 75 6e 2c 20 32 31 |.5.Date:| Sun, 21|
|00000090| 20 41 70 72 20 31 39 39 | 36 20 31 37 3a 30 38 3a | Apr 199|6 17:08:|
|000000a0| 32 30 20 2d 30 37 30 30 | 0a 4f 72 67 61 6e 69 7a |20 -0700|.Organiz|
|000000b0| 61 74 69 6f 6e 3a 20 42 | 65 69 6a 69 6e 67 20 54 |ation: B|eijing T|
|000000c0| 65 6c 65 67 72 61 70 68 | 20 41 64 6d 69 6e 69 73 |elegraph| Adminis|
|000000d0| 74 72 61 74 69 6f 6e 0a | 4d 65 73 73 61 67 65 2d |tration.|Message-|
|000000e0| 49 44 3a 20 3c 33 31 37 | 41 43 44 46 34 2e 31 35 |ID: <317|ACDF4.15|
|000000f0| 35 43 40 70 75 62 2e 7a | 6a 70 74 61 2e 6e 65 74 |5C@pub.z|jpta.net|
|00000100| 2e 63 6e 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |.cn>.Ref|erences:|
|00000110| 20 3c 33 31 37 37 42 36 | 34 41 2e 31 43 30 39 40 | <3177B6|4A.1C09@|
|00000120| 73 79 6e 74 72 6f 6e 69 | 63 2e 73 65 3e 0a 4e 4e |syntroni|c.se>.NN|
|00000130| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|00000140| 20 74 73 32 2d 34 30 2e | 73 74 61 2e 6e 65 74 2e | ts2-40.|sta.net.|
|00000150| 63 6e 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |cn.Mime-|Version:|
|00000160| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000170| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|00000180| 68 61 72 73 65 74 3d 69 | 73 6f 2d 38 38 35 39 2d |harset=i|so-8859-|
|00000190| 31 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |1.Conten|t-Transf|
|000001a0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 38 62 69 |er-Encod|ing: 8bi|
|000001b0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001c0| 6c 6c 61 20 32 2e 30 20 | 28 57 69 6e 39 35 3b 20 |lla 2.0 |(Win95; |
|000001d0| 49 3b 20 31 36 62 69 74 | 29 0a 54 6f 3a 20 46 72 |I; 16bit|).To: Fr|
|000001e0| 65 64 72 69 6b 20 53 6a | f6 f6 20 3c 66 72 73 6a |edrik Sj|.. <frsj|
|000001f0| 40 73 79 6e 74 72 6f 6e | 69 63 2e 73 65 3e 0a 0a |@syntron|ic.se>..|
|00000200| 46 72 65 64 72 69 6b 20 | 53 6a f6 f6 20 77 72 6f |Fredrik |Sj.. wro|
|00000210| 74 65 3a 0a 3e 20 43 6f | 6e 76 65 72 74 20 75 73 |te:.> Co|nvert us|
|00000220| 69 6e 67 20 69 6d 70 6c | 69 62 20 6f 6e 20 61 20 |ing impl|ib on a |
|00000230| 6d 61 64 65 20 2e 64 65 | 66 20 66 69 6c 65 20 28 |made .de|f file (|
|00000240| 73 6f 6d 65 74 68 69 6e | 67 20 6c 69 6b 65 20 74 |somethin|g like t|
|00000250| 68 69 73 29 3a 0a 3e 20 | 45 58 50 4f 52 54 53 0a |his):.> |EXPORTS.|
|00000260| 3e 20 20 20 5f 46 6f 6f | 20 3d 20 46 6f 6f 0a 3e |> _Foo| = Foo.>|
|00000270| 20 41 6c 6c 20 66 75 6e | 63 74 69 6f 6e 73 20 69 | All fun|ctions i|
|00000280| 6e 20 74 68 65 20 64 6c | 6c 20 69 73 20 64 65 63 |n the dl|l is dec|
|00000290| 6c 61 72 65 64 20 61 73 | 20 5f 5f 65 78 70 6f 72 |lared as| __expor|
|000002a0| 74 2e 0a 3e 20 54 68 69 | 73 20 63 6f 6d 62 69 6e |t..> Thi|s combin|
|000002b0| 61 74 69 6f 6e 20 77 6f | 72 6b 73 20 6a 75 73 74 |ation wo|rks just|
|000002c0| 20 66 69 6e 65 2c 20 62 | 75 74 20 28 74 68 65 72 | fine, b|ut (ther|
|000002d0| 65 20 69 73 20 61 6c 77 | 61 79 73 20 61 20 62 75 |e is alw|ays a bu|
|000002e0| 74 29 0a 3e 20 74 68 65 | 6e 20 69 20 74 72 69 65 |t).> the|n i trie|
|000002f0| 64 20 74 6f 20 63 6f 6d | 70 69 6c 65 20 74 68 65 |d to com|pile the|
|00000300| 20 64 6c 6c 20 75 6e 64 | 65 72 0a 3e 20 57 61 74 | dll und|er.> Wat|
|00000310| 63 6f 6d 20 43 2b 2b 20 | 31 30 2e 35 20 28 67 6f |com C++ |10.5 (go|
|00000320| 74 20 74 68 65 20 63 6f | 6d 70 69 6c 61 74 69 6f |t the co|mpilatio|
|00000330| 6e 20 73 75 63 63 65 73 | 73 66 75 6c 29 20 61 6e |n succes|sful) an|
|00000340| 64 20 74 72 69 65 64 20 | 74 6f 0a 3e 20 75 73 65 |d tried |to.> use|
|00000350| 20 74 68 65 20 28 77 61 | 74 63 6f 6d 29 64 6c 6c | the (wa|tcom)dll|
|00000360| 20 69 6e 20 74 68 65 20 | 42 6f 72 6c 61 6e 64 0a | in the |Borland.|
|00000370| 3e 20 6d 61 64 65 20 61 | 70 70 6c 69 63 61 74 69 |> made a|pplicati|
|00000380| 6f 6e 20 2d 3e 20 42 4f | 4f 4d 0a 3e 20 22 54 68 |on -> BO|OM.> "Th|
|00000390| 65 20 70 72 6f 63 65 64 | 75 72 65 20 65 6e 74 72 |e proced|ure entr|
|000003a0| 79 20 70 6f 69 6e 74 20 | 46 6f 6f 20 63 6f 75 6c |y point |Foo coul|
|000003b0| 64 20 6e 6f 74 20 62 65 | 20 6c 6f 63 61 74 65 64 |d not be| located|
|000003c0| 20 69 6e 20 64 79 6e 61 | 6d 69 63 0a 3e 20 6c 69 | in dyna|mic.> li|
|000003d0| 6e 6b 20 6c 69 62 72 61 | 72 79 20 44 75 6d 6d 79 |nk libra|ry Dummy|
|000003e0| 2e 64 6c 6c 22 0a 3e 20 | 0a 3e 20 54 72 69 65 64 |.dll".> |.> Tried|
|000003f0| 20 77 61 74 63 6f 6d 20 | 77 6c 69 62 20 74 6f 20 | watcom |wlib to |
|00000400| 63 6f 6e 76 65 72 74 20 | 61 20 2e 6c 62 63 20 66 |convert |a .lbc f|
|00000410| 69 6c 65 20 74 6f 20 61 | 20 2e 6c 69 62 20 66 6f |ile to a| .lib fo|
|00000420| 72 20 62 75 74 20 74 68 | 65 0a 3e 20 73 61 6d 65 |r but th|e.> same|
|00000430| 20 72 65 73 75 6c 74 20 | 3a 28 0a 0a 48 69 2c 0a | result |:(..Hi,.|
|00000440| 0a 4e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 64 |.Note th|at the d|
|00000450| 65 66 61 75 6c 74 20 63 | 61 6c 6c 69 6e 67 20 63 |efault c|alling c|
|00000460| 6f 6e 76 65 72 74 20 69 | 73 20 62 61 73 65 64 20 |onvert i|s based |
|00000470| 6f 66 66 20 72 65 67 69 | 73 74 65 72 2c 20 0a 61 |off regi|ster, .a|
|00000480| 6e 64 20 6e 61 6d 65 20 | 63 6f 6e 76 65 72 74 20 |nd name |convert |
|00000490| 6f 66 20 57 61 74 63 6f | 6d 20 43 2b 2b 20 69 73 |of Watco|m C++ is|
|000004a0| 3a 20 2a 20 74 6f 20 2a | 5f 2c 20 73 6f 20 69 66 |: * to *|_, so if|
|000004b0| 20 79 6f 75 20 73 65 65 | 20 74 68 65 0a 66 75 6e | you see| the.fun|
|000004c0| 63 74 69 6f 6e 20 6e 61 | 6d 65 20 69 73 20 66 2c |ction na|me is f,|
|000004d0| 20 69 74 20 77 69 6c 6c | 20 62 65 20 66 5f 20 69 | it will| be f_ i|
|000004e0| 6e 20 2e 6f 62 6a 20 6f | 72 20 2e 6c 69 62 20 66 |n .obj o|r .lib f|
|000004f0| 69 6c 65 2e 0a 0a 69 66 | 20 79 6f 75 20 77 61 6e |ile...if| you wan|
|00000500| 74 20 74 68 65 20 64 6c | 6c 20 63 6f 6d 70 69 6c |t the dl|l compil|
|00000510| 65 64 20 62 79 20 57 61 | 74 63 6f 6d 20 43 2b 2b |ed by Wa|tcom C++|
|00000520| 20 74 6f 20 62 65 20 75 | 73 65 64 20 62 79 20 61 | to be u|sed by a|
|00000530| 6e 6f 74 68 65 72 0a 43 | 2f 43 2b 2b 20 63 6f 6d |nother.C|/C++ com|
|00000540| 70 69 6c 65 72 2c 20 61 | 6e 64 20 74 68 65 20 63 |piler, a|nd the c|
|00000550| 6f 6d 70 69 6c 65 72 20 | 69 73 20 77 63 63 2e 65 |ompiler |is wcc.e|
|00000560| 78 65 20 6f 72 20 77 63 | 63 33 38 36 2e 65 78 65 |xe or wc|c386.exe|
|00000570| 2c 0a 79 6f 75 20 6d 61 | 79 62 65 20 6e 65 65 64 |,.you ma|ybe need|
|00000580| 20 74 6f 20 70 75 74 20 | 74 68 65 20 70 72 65 66 | to put |the pref|
|00000590| 69 78 20 5f 5f 63 64 65 | 63 6c 20 69 6e 20 66 75 |ix __cde|cl in fu|
|000005a0| 6e 63 74 69 6f 6e 20 64 | 65 63 6c 61 72 61 74 69 |nction d|eclarati|
|000005b0| 6f 6e 2e 20 0a 0a 69 66 | 20 69 74 20 69 73 20 63 |on. ..if| it is c|
|000005c0| 6f 6d 70 69 6c 65 64 20 | 69 6e 20 43 2b 2b 20 6d |ompiled |in C++ m|
|000005d0| 6f 64 65 6c 28 20 63 6f | 6d 70 69 6c 65 72 20 69 |odel( co|mpiler i|
|000005e0| 73 20 57 50 50 2e 45 58 | 45 20 4f 52 20 57 50 50 |s WPP.EX|E OR WPP|
|000005f0| 33 38 36 2e 45 58 45 29 | 0a 74 68 65 20 70 72 65 |386.EXE)|.the pre|
|00000600| 66 69 78 3a 0a 20 20 20 | 20 65 78 74 65 72 6e 20 |fix:. | extern |
|00000610| 22 43 22 0a 69 73 20 61 | 6c 73 6f 20 6e 65 65 64 |"C".is a|lso need|
|00000620| 65 64 2e 0a 0a 73 6f 20 | 70 72 6f 70 65 72 20 66 |ed...so |proper f|
|00000630| 6f 72 6d 61 74 20 6d 61 | 79 62 65 20 6c 6f 6f 6b |ormat ma|ybe look|
|00000640| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0a 0a 65 78 74 | like th|is:..ext|
|00000650| 65 72 6e 20 22 43 22 20 | 76 6f 69 64 20 5f 5f 63 |ern "C" |void __c|
|00000660| 64 65 63 6c 20 66 28 29 | 3b 0a 0a 0a 68 6f 70 65 |decl f()|;...hope|
|00000670| 20 74 68 69 73 20 68 65 | 6c 70 73 2c 0a 58 75 20 | this he|lps,.Xu |
|00000680| 59 69 66 65 6e 67 0a | |Yifeng. | |
+--------+-------------------------+-------------------------+--------+--------+